package appapi.entity.Zhongjiao;

import appapi.common.BaseEntity;
import appapi.entity.app.SelfcheckDetailEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author djq
 * @date 2023/5/18 11:13
 * @description:
 */

/**
 * 操作员自检
 */
@ApiModel(value = "操作员自检")
@Data
public class SelfcheckDto extends BaseEntity {
    /**
     * 记录ID
     */
    @ApiModelProperty(value = "记录ID")
    private Long selfId;
    @ApiModelProperty(value = "附件信息")
    private List<String> annexUrl;
    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id")
    private Long equipId;

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    private String equipNo;

    /**
     * 巡检项目
     */
    @ApiModelProperty(value = "巡检项目")
    private Long itemId;

    /**
     * 整改要求
     */
    @ApiModelProperty(value = "整改要求")
    private String expRequire;

    /**
     * 整改要求
     */
    @ApiModelProperty(value = "检测要求")
    private String selfRequire;

    /**
     * 0-通过;1-未通过
     */
    @ApiModelProperty(value = "0-通过;1-未通过")
    private Integer slefResult;

    /**
     * 检查描述
     */
    @ApiModelProperty(value = "检查描述")
    private String selfNote;

    /**
     * 巡检人员
     */
    @ApiModelProperty(value = "操作人员")
    private Long operId;

    /**
     * 0-已处理;1-未处理
     */
    @ApiModelProperty(value = "0-已处理;1-未处理")
    private Integer selfState;

    @ApiModelProperty(value = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime selfDate;

    @ApiModelProperty(value = "自检详情")
    private List<SelfcheckDetailEntity> detail;

}